using System;
using System.Globalization;
 
class Program
{
    static void Main()
    {
        int px1 = int.Parse(Console.ReadLine());
        int py1 = int.Parse(Console.ReadLine());
        int px2 = int.Parse(Console.ReadLine());
        int py2 = int.Parse(Console.ReadLine());
        int fx = int.Parse(Console.ReadLine());
        int fy = int.Parse(Console.ReadLine());
        int d = int.Parse(Console.ReadLine());
 
        int count = 0;
 
        int hit50_1_x = fx + d;
        int hit50_1_y = fy + 1;
 
        int hit50_2_x = fx + d;
        int hit50_2_y = fy - 1;
 
        int hit75_x = fx + d + 1;
        int hit75_y = fy;
 
        int hit100_x = fx + d;
        int hit100_y = fy;
 
        int start_x = new int();
        int start_y = new int();
 
        int end_x = new int();
        int end_y = new int();
 
        if (px1 < px2)
        {
            start_x = px1;
            end_x = px2;
        }
        else
        {
            start_x = px2;
            end_x = px1;
        }
 
        if (py1 < py2)
        {
            start_y = py1;
            end_y = py2;
        }
        else
        {
            start_y = py2;
            end_y = py1;
        }
 
        for (int i = start_x; i <= end_x; i++)
        {
            if (i == hit50_1_x)
            {
                for (int j = start_y; j <= end_y; j++)
                {
                    if (j == hit50_1_y)
                    {
                        count = count + 50;
                    }
                }
            }
        }
        for (int i = start_x; i <= end_x; i++)
        {
            if (i == hit50_2_x)
            {
                for (int j = start_y; j <= end_y; j++)
                {
                    if (j == hit50_2_y)
                    {
                        count = count + 50;
                    }
                }
            }
        }
        for (int i = start_x; i <= end_x; i++)
        {
            if (i == hit75_x)
            {
                for (int j = start_y; j <= end_y; j++)
                {
                    if (j == hit75_y)
                    {
                        count = count + 75;
                    }
                }
            }
        }
        for (int i = start_x; i <= end_x; i++)
        {
            if (i == hit100_x)
            {
                for (int j = start_y; j <= end_y; j++)
                {
                    if (j == hit100_y)
                    {
                        count = count + 100;
                    }
                }
            }
        }
        Console.WriteLine(count+"%");
    }
}